Optimal. Leaf size=26 \[ \frac {\sqrt {c x^2} (a+b x)^3}{3 b x} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.00, antiderivative size = 26, normalized size of antiderivative = 1.00, number of steps
used = 2, number of rules used = 2, integrand size = 20, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.100, Rules used = {15, 32}
\begin {gather*} \frac {\sqrt {c x^2} (a+b x)^3}{3 b x} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 15
Rule 32
Rubi steps
\begin {align*} \int \frac {\sqrt {c x^2} (a+b x)^2}{x} \, dx &=\frac {\sqrt {c x^2} \int (a+b x)^2 \, dx}{x}\\ &=\frac {\sqrt {c x^2} (a+b x)^3}{3 b x}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.00, size = 25, normalized size = 0.96 \begin {gather*} \frac {c x (a+b x)^3}{3 b \sqrt {c x^2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.10, size = 23, normalized size = 0.88
method | result | size |
default | \(\frac {\left (b x +a \right )^{3} \sqrt {c \,x^{2}}}{3 b x}\) | \(23\) |
risch | \(\frac {\left (b x +a \right )^{3} \sqrt {c \,x^{2}}}{3 b x}\) | \(23\) |
gosper | \(\frac {\left (x^{2} b^{2}+3 a b x +3 a^{2}\right ) \sqrt {c \,x^{2}}}{3}\) | \(28\) |
trager | \(\frac {\left (x^{2} b^{2}+3 a b x +b^{2} x +3 a^{2}+3 a b +b^{2}\right ) \left (-1+x \right ) \sqrt {c \,x^{2}}}{3 x}\) | \(46\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: RuntimeError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.51, size = 27, normalized size = 1.04 \begin {gather*} \frac {1}{3} \, {\left (b^{2} x^{2} + 3 \, a b x + 3 \, a^{2}\right )} \sqrt {c x^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 41 vs.
\(2 (19) = 38\).
time = 0.08, size = 41, normalized size = 1.58 \begin {gather*} a^{2} \sqrt {c x^{2}} + a b x \sqrt {c x^{2}} + \frac {b^{2} x^{2} \sqrt {c x^{2}}}{3} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 1.16, size = 29, normalized size = 1.12 \begin {gather*} \frac {1}{3} \, {\left (\frac {{\left (b x + a\right )}^{3} \mathrm {sgn}\left (x\right )}{b} - \frac {a^{3} \mathrm {sgn}\left (x\right )}{b}\right )} \sqrt {c} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.04 \begin {gather*} \int \frac {\sqrt {c\,x^2}\,{\left (a+b\,x\right )}^2}{x} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________